Optimal. Leaf size=173 \[ \frac {(A+i B) F_1\left (\frac {3}{2};1,-n;\frac {5}{2};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}}{3 d}+\frac {(A-i B) F_1\left (\frac {3}{2};1,-n;\frac {5}{2};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 173, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {3684, 3683,
129, 525, 524} \begin {gather*} \frac {(A+i B) \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^n \left (\frac {b \tan (c+d x)}{a}+1\right )^{-n} F_1\left (\frac {3}{2};1,-n;\frac {5}{2};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right )}{3 d}+\frac {(A-i B) \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^n \left (\frac {b \tan (c+d x)}{a}+1\right )^{-n} F_1\left (\frac {3}{2};1,-n;\frac {5}{2};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right )}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 129
Rule 524
Rule 525
Rule 3683
Rule 3684
Rubi steps
\begin {align*} \int \sqrt {\tan (c+d x)} (a+b \tan (c+d x))^n (A+B \tan (c+d x)) \, dx &=\frac {1}{2} (A-i B) \int (1+i \tan (c+d x)) \sqrt {\tan (c+d x)} (a+b \tan (c+d x))^n \, dx+\frac {1}{2} (A+i B) \int (1-i \tan (c+d x)) \sqrt {\tan (c+d x)} (a+b \tan (c+d x))^n \, dx\\ &=\frac {(A-i B) \text {Subst}\left (\int \frac {\sqrt {x} (a+b x)^n}{1-i x} \, dx,x,\tan (c+d x)\right )}{2 d}+\frac {(A+i B) \text {Subst}\left (\int \frac {\sqrt {x} (a+b x)^n}{1+i x} \, dx,x,\tan (c+d x)\right )}{2 d}\\ &=\frac {(A-i B) \text {Subst}\left (\int \frac {x^2 \left (a+b x^2\right )^n}{1-i x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}+\frac {(A+i B) \text {Subst}\left (\int \frac {x^2 \left (a+b x^2\right )^n}{1+i x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=\frac {\left ((A-i B) (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}\right ) \text {Subst}\left (\int \frac {x^2 \left (1+\frac {b x^2}{a}\right )^n}{1-i x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}+\frac {\left ((A+i B) (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}\right ) \text {Subst}\left (\int \frac {x^2 \left (1+\frac {b x^2}{a}\right )^n}{1+i x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=\frac {(A+i B) F_1\left (\frac {3}{2};1,-n;\frac {5}{2};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}}{3 d}+\frac {(A-i B) F_1\left (\frac {3}{2};1,-n;\frac {5}{2};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 1.02, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {\tan (c+d x)} (a+b \tan (c+d x))^n (A+B \tan (c+d x)) \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.49, size = 0, normalized size = 0.00 \[\int \left (\sqrt {\tan }\left (d x +c \right )\right ) \left (a +b \tan \left (d x +c \right )\right )^{n} \left (A +B \tan \left (d x +c \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (A + B \tan {\left (c + d x \right )}\right ) \left (a + b \tan {\left (c + d x \right )}\right )^{n} \sqrt {\tan {\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\left (A+B\,\mathrm {tan}\left (c+d\,x\right )\right )\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________